package com.mew.common.rest.invite;

import com.mew.common.rest.user.SimpleUserBO;
import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.*;

import java.beans.SimpleBeanInfo;
import java.util.List;

/**
 * @author dylin
 * @create 2021/3/31
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
public class InviteUserResponseMessage extends ZebraBaseMessage<InviteUserResponseMessage> {
    private List<SimpleUserBO> inviteUserList; //推荐用户列表
    @Override
    public void write(ByteBuf b) {

        writeInt(b,inviteUserList.size());
        for (SimpleUserBO user : inviteUserList) {
            user.write(b);
        }
    }

    @Override
    public InviteUserResponseMessage read(ByteBuf byteBuf) {
        return null;
    }
}
